package com.yunji.base.service;

import com.yunji.base.bo.StaffLocationRemoveBO;
import com.yunji.base.dao.IStaffLocationDao;
import com.yunji.base.domain.StaffLocationDO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StaffLocationService {

    @Resource
    private IStaffLocationDao staffLocationDao;

    public boolean existsLocation(List<Long> list) {
        return staffLocationDao.existsLocation(list);
    }

    public void delete(StaffLocationRemoveBO bo) {
        staffLocationDao.delete(bo);
    }

    public void batchCreate(List<StaffLocationDO> createList) {
        staffLocationDao.saveBatch(createList);
    }

    public List<Long> getDeployStaffIds(Long locationId) {
        return staffLocationDao.getDeployStaffIds(locationId);
    }
}
